js split string on capital letter second

86

js split string on capital letter second -

'ThisIsTheStringToSplit'.split(/(?=[A-Z])/); // positive lookahead to keep the capital letters

Comments

Submit
0 Comments